#include"CPolygon.h"
#include"CRectangle.h"
#include"CTriangle.h"
void CPolygon::setValues(int a,int b){
	width=a;
	height=b;
}
int CRectangle::area(){
	return(width*height);
}
int CTraingle::area(){
	return(width*height/2);
}